﻿using ConsoleApplication1.Repositories;
using Crow.Library.DatabaseLayer;
using Crow.Library.RepositoryFactory;

namespace ConsoleApplication1.Businesses
{
    public class DataBusinessClass : IDataBusiness
    {
        #region IDataBusiness Members

        public Data GetDataById(int id)
        {
            using (var scope = new DbConnectionScope())
            {
                return Repository.Get<IDataRepository>().LoadDataById(id);
            }
        }

        #endregion
    }
}